"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["workflow-runs"],{6923:(e,t,n)=>{n.d(t,{KJ:()=>i,X3:()=>r,g5:()=>o});var s=n(56038);let r=void 0===s.XC,i=!r;function o(){return!!r||!s.XC||!!(s.XC.querySelector('react-app[data-ssr="true"]')||s.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},11083:(e,t,n)=>{n.d(t,{X:()=>g,i:()=>d});var s=n(71315),r=n(34095),i=n(99223),o=n(69599),l=n(21067),a=n(70170);let c=[];function d(e,t=!1,n=.5){if(!s.X3&&!0!==(0,o.G7)("browser_stats_disabled")){if(n<0||n>1)throw RangeError("Sampling probability must be between 0 and 1");void 0===e.timestamp&&(e.timestamp=Date.now()),e.loggedIn=(0,l.M3)(),e.staff=g(),e.bundler=i.v,Math.random()JSON.stringify(e));for(;n.length>0;)t.push(function(e){let t=e.shift(),n=[t],s=t.length;for(;e.length>0&&s<=65536;){let t=e[0].length;if(s+t<=65536){let r=e.shift();n.push(r),s+=t}else break}return n}(n));return t}(c)){var t=e,n=`{"stats": [${r.join(",")}], "target": "${s.XC?.head?.querySelector('meta[name="ui-target"]')?.content||"full"}"}`;try{navigator.sendBeacon&&navigator.sendBeacon(t,n)}catch{}}c=[]}}function g(){return!!s.XC?.head?.querySelector('meta[name="user-staff"]')?.content}s.XC?.addEventListener("pagehide",p),s.XC?.addEventListener("visibilitychange",p)},12936:(e,t,n)=>{var s=n(17688),r=n(87465),i=n(50467);let o={Plain:0,Command:1,Debug:2,Error:3,Info:4,Section:5,Verbose:6,Warning:7,Group:8,EndGroup:9,Icon:10,Notice:11},l=/^.{27}Z /gm,a=/([{([]*https?:\/\/[a-z0-9]+(?:-[a-z0-9]+)*\.[^\s<>|'"]{2,})/gi,c={"(":")","[":"]","{":"}"},d=e=>c[e],u=e=>`\\${e}`,h=/(?:\u001b\[)(?:[?|#])?(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-Z|a-z])/,p={Reset:"0",Bold:"22",Italic:"23",Underline:"24",Set_Fg:"38",Default_Fg:"39",Set_Bg:"48",Default_Bg:"49"},g={1:"bold",3:"italic",4:"underline"},m={40:"b",41:"r",42:"g",43:"y",44:"bl",45:"m",46:"c",47:"w",100:"gr"},f={30:"b",31:"r",32:"g",33:"y",34:"bl",35:"m",36:"c",37:"w",90:"gr"},S={0:"b",1:"r",2:"g",3:"y",4:"bl",5:"m",6:"c",7:"w"},y={0:0,1:51,2:102,3:153,4:204,5:255},b="command",v="debug",k="error",_="info",x="section",C="verbose",w="warning",L="group",E="endgroup",A="icon",I="notice",R={command:o.Command,debug:o.Debug,error:o.Error,info:o.Info,section:o.Section,verbose:o.Verbose,warning:o.Warning,notice:o.Notice,group:o.Group,endgroup:o.EndGroup,icon:o.Icon},j={0:"plain",1:b,2:v,3:k,4:_,5:x,6:C,7:w,8:L,9:E,10:A,11:I},O=[b,v,k,_,x,C,w,L,E,A,I];function $(e){return(e||"").toLocaleLowerCase()}let q={Standard:"Standard",Search:"Search",EOL:"EOL"},T=` `;let Parser=class Parser{parse(e,t,n){let r=(0,s.qy)``;for(let i of this.getStates(e)){let e,o=[],l=[],h=i.output;if(i.style){let e=i.style.fg,t=i.style.bg,n=i.style.isFgRGB,s=i.style.isBgRGB;e&&!n&&o.push(`ansifg-${e}`),t&&!s&&(o.push(`ansibg-${t}`),o.push("d-inline-flex")),e&&n&&l.push(`color:rgb(${e})`),t&&s&&(l.push(`background-color:rgb(${t})`),o.push("d-inline-flex")),i.style.bold&&o.push("text-bold"),i.style.italic&&o.push("text-italic"),i.style.underline&&o.push("text-underline")}let p=-1,g=0,m=Array(h.length).fill(q.Standard);if(n){let e=n.selectedLine,s=n.lines.slice(0,100).map(e=>e.line);if(t===e||-1!==s.indexOf(t)){let e=n.text,t=1,s=$(h);for(;-1!==(p=s.indexOf($(e),p+1))&&!(t>=50);){g=p+e.length;let n=h.substring(p,g);for(let e=0;e{let n,r=e,i=m[e];for(let o=e;o<=e+t.length;o++){let l=o===e+t.length?q.EOL:m[o];if(i!==l){let e=h.substring(r,o);n=i===q.Search?(0,s.qy)`${n}${e}`:(0,s.qy)`${n}${e}`,i=l,r=o}}return n},y=h.split(a),b=0;for(let t of y)if(""!==t){if(t.match(a)){let n=t.match(/^[([{]*/),r=n?.[0]||"",i="";if(r){let e=[...r].map(d).map(u).reverse().join(""),n=Object.values(c).map(u).join(""),s=RegExp(`${e}[^${n}}>]*(?=$)`),o=t.match(s);i=o?.[0]||""}let o=t.replace(r,"").replace(i,""),l=S(b,r),a=S(b+r.length,o),h=S(b+r.length+o.length,i);e=(0,s.qy)`${e}${l}${a}${h}`}else{let n=S(b,t);e=(0,s.qy)`${e}${n}`}b+=t.length}r=(0,s.qy)`${r}${e}`}return r}parseLines(e){let t,n=[],s=[],r=0,i=-1,a=!0,c="",d="",u=-1,h=()=>{d="",c=""},p=()=>{i=-1},g=()=>{u=-1},m=()=>{if(-1!==O.indexOf(c)){if(a=!1,p(),u=R[c],c===x||c===L||c===E||c===b||c===k||c===w||c===I){let t=e.substring(r,r+29)||"";if(!t.match(l)&&4>t.indexOf(c)){let t="##"===e.substring(r,r+2)?4:2;r=r+t+c.length}}c===L&&(f=!0),c===E&&t&&(S=!0)}h()},f=!1,S=!1,y=0,v=0;for(let l=0;l0&&n.push({nodes:s}),s=[],r=l+1,p(),g(),h(),a=!1}else if("#"===b)(""===d||"#"===d)&&(a=!1,d+="#");else if("["===b)"##"===d?(a=!1,d+="["):0===d.length&&(a=!1,d+="[");else if("]"===b)if(c===A){let t=l+1,i=t;for(let n=t;n8&&h(),-1===i&&(i=r,-1===u&&(u=o.Plain)))}return n}getStates(e){let t=[];if(!h.test(e))return[{output:e}];let n="",s="",r="",i={},o=!1,l=[];for(let a=0;a=0&&r<16?s.fg=this._get8BitColorClasses(r):r>=16&&r<256&&(s.fg=this._get8BitRGBColors(r),s.isFgRGB=!0),e=!1,a=!1):e&&c?r>=0&&r<256&&(d.push(r),3===d.length&&(s.fg=`${d[0]},${d[1]},${d[2]}`,s.isFgRGB=!0,d.length=0,e=!1,c=!1)):t&&a?(r>=0&&r<16?s.bg=this._get8BitColorClasses(r):r>=16&&r<256&&(s.bg=this._get8BitRGBColors(r),s.isBgRGB=!0),t=!1,a=!1):t&&c?r>=0&&r<256&&(d.push(r),3===d.length&&(s.bg=`${d[0]},${d[1]},${d[2]}`,s.isBgRGB=!0,d.length=0,t=!1,c=!1)):e||t?5===r?a=!0:2===r&&(c=!0):f[n]?s.fg=f[n]:m[n]?s.bg=m[n]:n===p.Reset?i.style={}:n===p.Set_Bg?t=!0:n===p.Set_Fg?e=!0:n===p.Default_Fg?s.fg="":n===p.Default_Bg?s.bg="":r>=91&&r<=97?s.fg=f[r-60]+"-br":r>=101&&r<=107?s.bg=m[r-60]+"-br":g[n]?s[g[n]]=!0:n===p.Bold?s.bold=!1:n===p.Italic?s.italic=!1:n===p.Underline&&(s.underline=!1)}n="",s="",r=""}else o=!1,n="",i.style={};l=[]}else isNaN(parseInt(c))?(r="",o=!1,n=""):4===r.length?(r="",o=!1,"\x1b"!==c&&(n="",s+=c)):r+=c;continue}if(n){if("\x1b"===n&&"["===c&&(o=!0,s)){let e;i.output=s,t.push(i),i.style&&(e=Object.assign({},i.style)),i={},e&&(i.style=e),s=""}continue}"\x1b"===c?n=c:s+=c}return s&&(i.output=s+(n||""),t.push(i)),t}_get8BitRGBColors(e){let t;return t=e<232?this._get216Color(e-16):this._get8bitGrayscale(e-232),`${t.r},${t.g},${t.b}`}_get8BitColorClasses(e){return e<8?`${S[e]}`:`${S[e-8]+"-br"}`}_get216Color(e){return{r:y[Math.floor(e/36)],g:y[Math.floor(e/6)%6],b:y[e%6]}}_get8bitGrayscale(e){let t=10*e+8;return{r:t,g:t,b:t}}};var M=n(46636);let D=e=>{let t;return(t=e.isError?(0,s.qy)`Error: ${e.lineContent}`:e.isWarning?(0,s.qy)`Warning: ${e.lineContent}`:e.isNotice?(0,s.qy)`Notice: ${e.lineContent}`:e.lineContent,e.isGroup)?(0,s.qy)`
${t}
`:e.inGroup?(0,s.qy)`${" "}${t}`:t},N=new Parser;let LogParser=class LogParser{updateLineMetaData(){let e=this.rawLogData.split(/\r?\n/),t=/^(.{27}Z) /;this.timestamps=[],this.logContent=e.map(e=>{let n=e.match(t),s=n&&new Date(n[1]),r="";return n&&s&&!isNaN(Number(s))&&(r=s.toUTCString(),e=e.substring(n[0].length)),this.timestamps.push(r),e}).join(` `),this.lineMetaData=N.parseLines(this.logContent)}setData(e){this.rawLogData=e,this.updateLogLines()}appendData(e){this.rawLogData+=e,this.updateLogLines()}appendLines(e,t){let n=this.logLines.length,s=new Date().toISOString().replace("Z","0000Z"),r=e.map(e=>{let t="string"==typeof e,n=t?s:e.ts.toISOString().replace("Z","0000Z"),r=t?e:e.text;return`${n} ${r}`}).join(` `);if(this.appendData(`${n?` `:""}${r}`),null!=t)for(let s=0;s0?n[0].line:-1;return this.findResult={text:e,lines:n,selectedLine:s},n.map(e=>e.line)}findLines(e){let t=$(e),n=[];for(let e of this.logLines)if($(this.getNodeTextForSearch(e)).indexOf(t)>=0&&(n.push({line:e.lineIndex}),n.length>=100))break;return n}cancelSearch(){this.findResult=void 0,this.updateLogLines()}renderTemplate(e,t,n){let{lineIndex:r}=e,i=this.logLineNumbers[r],l=null!=i?i:r+1,a=this.getNodeText(e),c=N.parse(a,r,this.findResult),d={className:`log-line-${j[e.type]}`,lineNumber:l,lineContent:c,timeStamp:this.timestamps[r],lineUrl:`${this.permalinkPrefix}:${l}`,isGroup:e.type===o.Group,inGroup:e.group?.lineIndex!=null,isError:e.type===o.Error,isWarning:e.type===o.Warning,isNotice:e.type===o.Notice,groupExpanded:t};if(d.lineNumber=d.lineNumber-e.groupCount,n)return(0,s.qy)`
${d.timeStamp&&(0,s.qy)`${d.timeStamp}`} ${D(d)}
`;return(0,s.qy)`
${d.lineNumber} ${d.timeStamp&&(0,s.qy)`${d.timeStamp}`} ${D(d)}
`}getNodeText(e){return null==e.text&&(e.text=this.logContent.substring(e.start,e.end+1)),e.text}getNodeTextForSearch(e){e.text=this.getNodeText(e);let t=RegExp(h,"g");return e.text.replaceAll(t,"")}indexFromNumber(e){let t=this.logLineNumbers.indexOf(e);return t<0?e-1:t}constructor(e,t){(0,i._)(this,"logContent",void 0),(0,i._)(this,"rawLogData",void 0),(0,i._)(this,"lineMetaData",void 0),(0,i._)(this,"findResult",void 0),(0,i._)(this,"logLines",void 0),(0,i._)(this,"logLineNumbers",void 0),(0,i._)(this,"timestamps",void 0),(0,i._)(this,"permalinkPrefix",void 0),this.rawLogData=e,this.permalinkPrefix=t,this.logContent="",this.lineMetaData=[],this.logLines=[],this.logLineNumbers=[],this.timestamps=[]}};var B=n(44569),G=n(21403),F=n(97797),U=n(19412),P=n(11083);let X=null,W=!0,J=null,V=!1,K={};function H(){return Object.keys(K).map(e=>K[e])}let z=()=>document.querySelector(".content-preview-content")||document.querySelector(".js-full-logs-container");(0,G.lB)(".js-full-logs-container",{constructor:HTMLElement,add(){et(),Q()}});let Z=()=>{let e=z(),t=e?.hasAttribute("data-ux-refresh");return e&&t};function Y(){(function(){let e=ee();null!==J&&!V&&e0&&!a.getAttribute("hidden")&&(a.setAttribute("hidden","hidden"),c.hidden=!1),d.hidden=!0,u&&u.removeAttribute("hidden"),s&&(eu(e),(0,P.i)({incrementKey:"ACTIONS_STREAMING_LOG_VIEWS_SUCCEED"})),ed(e)&&W&&(J=ee(),eT(e,e.parser.logLines.length-1))}async function eS(e,t,n){let s=0,r=new TextDecoder("utf-8");for(;;){let i=await t.read();if(i.done)break;let o=null==i.value?new Uint8Array(0):i.value;if((s+=o.length)>0xa00000){eA(e).truncatedMessage.hidden=!1;break}let l=r.decode(o);await eb(e,l,n)}}function ey(e){let t="CHECK-STEP"===e.tagName?"data-number":"data-step-number",n=e.getAttribute(t);return n?+n:-1}async function eb(e,t,n){n=n||{};let{logsContainer:s}=eA(e),r=e.clusters[e.clusters.length-1],i=r?r.startIndex:0,o=e.parser.logLines.length-1;for("string"==typeof t?e.parser.appendData(t):e.parser.appendLines(t,n.startLine),e$(e,[o]);i{setTimeout(async()=>{await ev(e,t&&r.visible),n()},0)})}function ek(e,t){let n=t.startIndex,s=0;for(;n<=t.endIndex;){let t=e.parser.logLines[n++],r=t.group?.lineIndex;(null==r||e.expandedGroups.has(r))&&s++}if(!t.visible){let e=t.height??20*s;t.wrapper.style.height=`${e}px`}}function e_(){return z()||document.documentElement}function ex(){return z()&&(!Z()||eI())?z().offsetHeight:window.innerHeight}function eC(e,t){let n=e_(),{wrapper:s,visible:r}=t,i=Z()&&!eI()?-n.getBoundingClientRect().top:n.scrollTop,o=i>s.offsetTop+s.offsetHeight,l=i+ex(){let n=eO(e,t);return n?(0,s.qy)`
${n}
`:(0,s.qy)``})} `,l=document.createElement("div");(0,s.XX)(o,l),t.wrapper.appendChild(l)}function eE(){if(X){let e=e_(),t=Z()?-e.getBoundingClientRect().top:e.scrollTop,n=t>X.offsetTop+X.offsetHeight,s=t+ex()=en.COMPLETED_LOGS_LOADED)for(let t of e.clusters)eC(e,t)}(e)}function eA(e){let t=e.container.querySelector(".js-checks-log-display");return{logsContainer:t.querySelector(".js-checks-log-display-container"),loader:e.container.querySelector(".js-check-step-loader"),downloadErrorMessage:t.querySelector(".js-checks-log-display-error"),downloadErrorMessageText:t.querySelector(".js-checks-log-display-error-text"),animation:e.container.querySelector(".js-check-step-icon-animation"),truncatedMessage:t.querySelector(".js-checks-log-display-truncated"),chevron:e.container.querySelector(".js-check-step-chevron")}}function eI(){let e=document.querySelector(".js-check-steps");return!!e?.style?.position}function eR(e){e.parser.cancelSearch(),e$(e,e.searchLineIndexes),e.searchLineIndexes=[]}function ej(e,t,n){let r=eO(e,t);if(null===r){n.hidden=!0;return}n.hidden=!1,(0,s.XX)(r,n)}function eO(e,t){let n=e.parser.logLines[t],s=n.group?.lineIndex;if(null!=s&&!e.expandedGroups.has(s))return null;let r=n.isGroup&&e.expandedGroups.has(t);return e.parser.renderTemplate(n,!!r,!1)}function e$(e,t){for(let n of t){let t=eq(e,n);t&&ej(e,n,t)}}function eq(e,t){return e.container.querySelector(`[data-index='${t}']`)}function eT(e,t,n){let{select:s}=n||{};eu(e);let r=e.clusters.length<100;for(let n of e.clusters)(r||t-50<=n.endIndex&&t+50>=n.startIndex)&&ew(e,n,!0);let i=H().sort((e,t)=>e.number-t.number),o=i.findIndex(t=>t.number===e.number);eM(i,o,50-(t+1),!0),eM(i,o,50-(e.clusters[e.clusters.length-1].endIndex-t),!1);let l=eq(e,t);if(!l)return;let{hidden:a}=l;X=l,a&&function(e,t){let n=e.parser.logLines[t],s=n.group?.lineIndex;if(null==s)return;e.expandedGroups.add(s);let r=e.container.querySelector(`[data-index='${s}'] details`);r&&r.setAttribute("open","open")}(e,t),a&&s&&ej(e,t,l),s&&eD(l),setTimeout(async()=>{X?.scrollIntoView({behavior:r?"smooth":"auto",block:"center"})},0)}function eM(e,t,n,s){let r=n,i=s?-1:1,o=t+i;for(;r>0&&(s&&o>=0||!s&&o0&&ed(e[o])){let t=e[o],n=s?t.clusters.length-1:0,i=t.clusters[n];ew(t,i,!0),r-=i.endIndex-i.startIndex+1}o+=i}}function eD(e){for(let e of document.querySelectorAll(".js-check-step-line.selected"))e.classList.remove("selected");e.querySelector(".js-check-step-line").classList.add("selected")}function eN(e,t,n){let s=e.parser.indexFromNumber(t);if(n)eT(e,s,{select:!0});else{let t=eq(e,s);t&&eD(t)}}(0,F.on)("change",".js-checks-log-fullscreen",function(){let e=document.querySelector(".js-check-steps");if(function(){let e=document.querySelector(".js-checks-log-fullscreen");(0,r.JC)(e),(0,B.zw)()?e.setAttribute("data-hotkey",eI()?"Shift+F":"Shift+F,Escape"):e.setAttribute("data-hotkey",eI()?"":"Escape"),(0,r.ai)(e,e.dataset.shortcut)}(),J=null,eI()){if(Z()){let e=e_(),t=e.querySelectorAll(".js-check-step-summary"),n=document.querySelector(".js-checks-log-toolbar");for(let s of(z()?.removeEventListener("scroll",Y),document.addEventListener("scroll",Y),e.classList.remove("overflow-y-scroll"),n.classList.add("uxr_CheckRun-header"),t))s.classList.add("uxr_CheckStep-header"),s.classList.remove("top-0"),s.style.removeProperty("sticky")}for(let t of["position","top","left","right","bottom","zIndex"])e.style.removeProperty(t);e.classList.add("rounded-md-1")}else{if(Z()){let e=e_(),t=e.querySelectorAll(".js-check-step-summary"),n=document.querySelector(".js-checks-log-toolbar");for(let s of(z()?.addEventListener("scroll",Y),document.removeEventListener("scroll",Y),e.classList.add("overflow-y-scroll"),n.classList.remove("uxr_CheckRun-header"),t))s.classList.remove("uxr_CheckStep-header"),s.classList.add("top-0"),s.style.position="sticky"}e.style.position="fixed",e.style.left="0",e.style.right="0",e.style.top="0",e.style.bottom="0",e.style.zIndex="1000",e.classList.remove("rounded-md-1")}et(),eE()});var eB=n(96123),eG=n(51987);let eF=new LogParser("","");async function eU(e){var t;let n=e.getAttribute("check-run-log-url");if(!n)return;let{blankSlate:s,logsContainer:r}=(t=e,{blankSlate:document.querySelector(".js-steps-blankslate"),logsContainer:t.querySelector(".js-check-run-log-display-container")});try{let e=await fetch(n,{headers:{...(0,eG.kt)()}});if(!e.ok)throw Error("Response was not OK");let t=await e.text();eP(s),await eX(r,t)}catch(e){throw e}finally{eP(s)}}function eP(e){e.setAttribute("hidden","hidden")}async function eX(e,t){"string"==typeof t?eF.appendData(t):eF.appendLines(t,0);let n=[];for(let e=0;e{let t=function(e){let t=eF.logLines[e];return eF.renderTemplate(t,!0,!0)}(e);return t?(0,s.qy)`
${t}
`:(0,s.qy)``})} `,i=document.createElement("div");(0,s.XX)(r,i),e.appendChild(i)}let eW=null,eJ=null,eV=!1;function eK(){let e=window.location.hash.match(/^#step:(\d+):(\d+)$/)||[];0===e.length?(eW=+(e=window.location.hash.match(/^#annotation:(\d+):(\d+)$/)||[])[1]||null,eJ=+e[2]||null,eV=!0):(eW=+e[1]||null,eJ=+e[2]||null,eV=!1)}if(eK(),(0,F.on)("change",".js-checks-log-timestamps",e=>{let t=e.currentTarget;t.closest(".js-check-steps").classList.toggle("CheckRun-show-timestamps",t.checked)}),(0,G.lB)(".js-checks-log-details",{async add(e){let t=document.querySelector(".js-steps-blankslate");t&&(t.hidden=!0);let n=document.querySelector(".js-check-run-log-display");n&&(n.hidden=!0);let s=document.querySelector(".js-check-run-search");s&&(s.hidden=!1);let r=function(e,t){let n=ey(e),s=e.getAttribute("data-external-id")||"",r=new LogParser("",`${ei}#step:${n}`),i={externalId:s,number:n,parser:r,container:e,searchLineIndexes:[],state:en.INITIAL,clusters:[],permalinkLine:void 0,expandedGroups:new Set};(function(e){let t=e.parentNode?.nodeName==="CHECK-STEP"?e.parentElement:e,n=ey(t);for(let e of[...t.parentElement.children]){if(e===t)break;+n<+ey(e)&&t.parentElement.insertBefore(t,e)}})(e),K[s]=i,e.removeEventListener("toggle",ea),e.addEventListener("toggle",ea),e.removeEventListener("click",ec),e.addEventListener("click",ec);let o=eo[i.externalId];if(o){for(let e of Object.values(K))i===e||e.container.hasAttribute("manually-opened")||function(e){e.container.removeAttribute("open");let t=e.container.closest("check-step");t&&(t.removeAttribute("data-in-progress"),t.removeAttribute("manually-opened"),t.update())}(e);ef(i,o,null),delete eo[i.externalId]}return i}(e),i=e.getAttribute("data-expand")&&null===eW,o=r.number===eW;(o||i)&&(await em(r,{keepLoader:!0,scrollToBottom:!o,permaLink:o}),o&&null!==eJ&&eN(r,eJ,!0))}}),(0,G.lB)(".js-check-run-blankslate",{subscribe:e=>(0,eB.Rt)(e,"socket:message",function(e){let t=e.target,{has_steps:n}=e.detail.data;n&&t.remove()})}),(0,G.lB)(".js-steps-dropdown",{subscribe:e=>(0,eB.Rt)(e,"socket:message",function(e){let t=e.target,{data:n}=e.detail,{log_archive:s,raw_logs:r}=n;if(s){let e=t.querySelector(".js-steps-dropdown-log-archive");e&&(e.hidden=!1)}if(r){let e=t.querySelector(".js-steps-dropdown-raw-logs");e&&(e.hidden=!1)}if(s||r){let e=t.querySelector(".js-steps-dropdown-divider");e&&(e.hidden=!1)}})}),(0,G.lB)(".js-check-run-log-display",{async add(e){await eU(e)}}),ResizeObserver){let e=e=>{let{borderBottomWidth:t,marginBottom:n}=window.getComputedStyle(e);for(let s of document.getElementsByClassName("uxr_CheckStep-header")){let r=e.clientHeight+parseInt(n,10)+parseInt(t,10);s.style.top=`${r}px`}},t=new ResizeObserver(t=>{for(let n of t)e(n.target)});(0,G.lB)(".js-checks-log-toolbar",{constructor:HTMLElement,add(n){e(n),t.observe(n)},remove(e){t.unobserve(e)}})}async function eH(){if(eK(),null===eJ)return;let e=H().find(e=>e.number===eW);e&&(await em(e,{keepLoader:!0}),eN(e,eJ,eV))}(0,F.on)("click",".js-steps-dropdown-raw-logs",e=>{e.currentTarget.closest("details")?.removeAttribute("open")}),(0,F.on)("toggle",".js-checks-log-group",e=>{let t=e.target,n=function(e){let t=e.closest(".js-checks-log-details");return H().find(e=>e.container===t)}(t);if(!n)return;let s=t.closest(".CheckStep-line").parentElement;s&&!function(e,t,n){n?e.expandedGroups.add(t):e.expandedGroups.delete(t);let s=e.parser.logLines.filter(e=>e.group?.lineIndex===t);if(0===s.length)return;let r=s.map(e=>e.lineIndex),i=r[0],o=r[r.length-1];for(let t of e.clusters)t.startIndex<=o&&t.endIndex>=i&&(ek(e,t),X||eC(e,t),t.visible&&e$(e,r.filter(e=>e>=t.startIndex&&e<=t.endIndex)));eE()}(n,Number(s.getAttribute("data-index")||"0"),t.hasAttribute("open"))},{capture:!0}),window.addEventListener("hashchange",eH,!1);var ez=n(70170);let eZ=[],eY=-1;function eQ(){return eZ.length>0}function e0(){eQ()&&e1(eY+1>=eZ.length?0:eY+1)}function e1(e){let t=eZ[eY],n=eZ[e],s=H(),r=s[t.stepIndex],i=s[n.stepIndex];r.parser.setSelectedLine(-1),i.parser.setSelectedLine(n.lineIndex),eT(i,n.lineIndex,{select:!0}),eY=e}function e5(e,t){eZ.length>0?e2(e):function(e,t){let n=e.querySelector(".js-checks-log-toolbar"),s=n.querySelector(".js-checks-log-search-previous"),r=n.querySelector(".js-checks-log-search-next"),i=n.querySelector(".js-checks-log-search-counter");i.textContent="0/0",i.hidden=t,s.disabled=!0,r.disabled=!0,s.hidden=t,r.hidden=t}(e,t)}function e2(e){let t=e.querySelector(".js-checks-log-toolbar"),n=t.querySelector(".js-checks-log-search-previous"),s=t.querySelector(".js-checks-log-search-next"),r=t.querySelector(".js-checks-log-search-counter"),i=t.querySelector(".js-checks-log-search-input");r.textContent=`${eY+1}/${eZ.length}`,r.hidden=!1,n.hidden=!1,s.hidden=!1,n.disabled=!i.value,s.disabled=!i.value}(0,G.lB)(".js-check-steps-search",{constructor:HTMLElement,add(e){var t=e;let n=t.querySelector(".js-checks-log-toolbar").querySelector(".js-checks-log-search-input");n.addEventListener("input",(0,ez.s)(()=>{if(n.value){var e;let t;e=n.value,t=!0,eZ=H().reduce((n,s,r)=>{let i=function(e,t,n){eR(e);let s=e.parser.search(t,n);return e.searchLineIndexes=s,n&&s.length>0&&(e$(e,e.searchLineIndexes),eT(e,s[0],{select:!0})),s}(s,e,t);return i.length>0&&(t=!1),n.push(...i.map(e=>({lineIndex:e,stepIndex:r}))),n},[]),eY=0}else for(let e of(eZ=[],eY=-1,H()))eR(e);e5(t,!1)},150)),n.addEventListener("focus",()=>e5(t,!1)),n.addEventListener("blur",()=>e5(t,!0))}}),(0,F.on)("submit",".js-check-steps-search form.js-checks-log-search",e=>{e.preventDefault(),e0(),e5(e.target.closest(".js-check-steps-search"),!1)}),(0,F.on)("click",".js-checks-log-search-previous",e=>{eQ()&&e1(eY-1<0?eZ.length-1:eY-1),e2(e.target.closest(".js-check-steps-search"))}),(0,F.on)("click",".js-checks-log-search-next",e=>{e0(),e2(e.target.closest(".js-check-steps-search"))});var e3=n(58371);let e6=!1;function e7(e){let t=document.importNode(e.content,!0),n=document.querySelector("#js-flash-container");for(let e of n.children)n.removeChild(e);n.appendChild(t)}function e4(){for(let e of document.querySelectorAll(".js-selected-check-run"))e.remove();document.querySelector(".js-zen-blankslate").hidden=!1,e6=!0}(0,e3.JW)(".js-check-suite-rerequest-form",async function(e,t){let n=e.closest("details");if(!n)return;n.removeAttribute("open");let s=document.querySelector("#js-selected-check-run");if(null!==s){let t="true"===e.querySelector("input[name=only_failed_check_runs]").value,n="true"===s.getAttribute("data-failed");(!t||n)&&e4()}try{await t.text(),e7(document.querySelector("#js-check-suite-rerequest-form-success"))}catch(e){throw e7(document.querySelector("#js-check-suite-rerequest-form-error")),e}}),(0,e3.JW)(".js-check-run-rerequest-form",async function(e,t){e6=!0,document.querySelector("#js-selected-check-run").contains(e)&&e4();try{await t.text(),e7(e.querySelector(".js-check-run-rerequest-form-success"))}catch(t){throw e7(e.querySelector(".js-check-run-rerequest-form-error")),t}}),(0,G.lB)(".js-latest-run-link",{constructor:HTMLElement,add(e){e6&&e.click()}});var e9=n(31635),e8=n(39595),te=n(76999);let CheckStepElement=class CheckStepElement extends HTMLElement{get detailsDisabled(){return!this.loggedIn||!this.logUrl}get iconTemplate(){let e=this.inProgress?"step-icon-in-progress":`step-icon-${this.conclusion}`,t=document.getElementById(e)||document.getElementById("step-icon-other");if(t)return(0,te.qy)([t.innerHTML])}get gearIcon(){let e=document.getElementById("primer-octicon-gear");if(e)return(0,te.qy)([e.innerHTML])}get time(){return this.startedAt&&this.completedAt?this.preciseDuration():this.startedAt&&!this.jobCompleted?(0,te.qy)` Started at ${new Date(this.startedAt).getTime()} `:void 0}connectedCallback(){this.update()}preciseDuration(){let e=new Date(this.startedAt),t=Math.round((new Date(this.completedAt).getTime()-e.getTime())/1e3),n=Math.floor(t/60),s=t%60,r=Math.floor(n/60),i=Math.floor(r/24);return t<0?"0s":n<1?`${t}s`:r<1?`${n}m ${s}s`:i<1?`${r}h ${n%60}m ${s}s`:`${i}d ${r%24}h`}update(){let e=[];this.useActionsUx||e.push("position: sticky"),"skipped"===this.conclusion&&e.push("cursor: default"),eI()?e.push("top: 0px"):this.header?.style?.cssText&&e.push(this.header.style.cssText),(0,te.XX)((0,te.qy)`
${this.loggedIn?(0,te.qy)` `:""} ${this.iconTemplate} ${this.name}
${this.time}
`,this)}constructor(...e){super(...e),(0,i._)(this,"name",""),(0,i._)(this,"number",1),(0,i._)(this,"conclusion",""),(0,i._)(this,"externalId",""),(0,i._)(this,"logUrl",""),(0,i._)(this,"expand",""),(0,i._)(this,"inProgress",!1),(0,i._)(this,"startedAt",""),(0,i._)(this,"completedAt",""),(0,i._)(this,"jobCompleted",!1),(0,i._)(this,"useActionsUx",!1),(0,i._)(this,"loggedIn",!1)}};(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"name",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"number",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"conclusion",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"externalId",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"logUrl",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"expand",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"inProgress",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"startedAt",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"completedAt",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"jobCompleted",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"useActionsUx",void 0),(0,e9.Cg)([e8.CF],CheckStepElement.prototype,"loggedIn",void 0),(0,e9.Cg)([e8.aC],CheckStepElement.prototype,"header",void 0),CheckStepElement=(0,e9.Cg)([e8.p_],CheckStepElement);var tt=n(35750),tn=n(18150),ts=n(85242),tr=n(8964),ti=n(52401),to=n(21245);let tl={StepLog:0,StepsUpdate:1};var ta=new WeakMap,tc=new WeakMap,td=new WeakMap,tu=new WeakMap,th=new WeakMap,tp=new WeakMap,tg=new WeakMap,tm=new WeakMap;let tf=class CheckStepsElement extends HTMLElement{connectedCallback(){this.loggedIn&&(this.addEventListener("socket:message",this.handleAliveEvent.bind(this)),this.createOrCloseStreamingLogSocket(),this.isJobCompleted()||this.requestJobSteps())}disconnectedCallback(){(0,tt._)(this,tu).abort(),this.removeEventListener("socket:message",this.handleAliveEvent.bind(this)),this.textContent=""}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"data-can-stream":case"data-job-status":this.createOrCloseStreamingLogSocket(),this.isJobCompleted()&&this.requestJobSteps()}}handleAliveEvent(e){let t=e?.detail;if(t)switch(t.name?.split(":")?.[0]){case"check_runs":{let e=t.data;this.jobStatus=e.status,this.canStream=e.streaming_logs;break}case"actions_results":{let e=t.data.kind;if(e===tl.StepLog){let e=t.data.data;this.handleAliveStepLogEvent(e)}else if(e===tl.StepsUpdate){let e=t.data.data;this.handleAliveStepUpdateEvent(e)}}}}handleAliveStepUpdateEvent(e){if(this.stepsFromResults){let t=Math.min(...e.map(e=>e.changeOrder));(0,ts._)(this,ta,t),this.requestJobSteps()}}handleAliveStepLogEvent(e){let t=!1,n=K[e.stepId],s=e.lines.filter(e=>!(0,tt._)(this,tp).has(e.lineID)),r=s.map(e=>e.line);if(n&&(0,tt._)(this,tg)){let s=n.state;ef(n,r,e.startLine),t=s!==n.state}else{var i,o;for(let e of s)(0,tt._)(this,tp).add(e.lineID);(i=(0,tt._)(this,tm))[o=e.stepId]||(i[o]=[]),(0,tt._)(this,tm)[e.stepId]?.push(...s.map(({line:e,lineID:t})=>({id:t,line:e}))),t=!0}t&&this.requestJobSteps()}createOrCloseStreamingLogSocket(){if(this.stepsFromResults||!this.streamingUrl||!this.canStream)return;let{signal:e}=(0,tt._)(this,tu);if("completed"===this.jobStatus){(0,tt._)(this,tu).abort(),(0,tt._)(this,th).closeExistingSocket();return}this.requestJobSteps(),(0,tt._)(this,th).startOrContinueStreaming(this.streamingUrl),(0,tt._)(this,th).removeEventListener("onStreamFailure",this.handleStreamFailure),(0,tt._)(this,th).addEventListener("onStreamFailure",this.handleStreamFailure,{signal:e}),(0,tt._)(this,th).removeEventListener("socketDidReceiveMessage",this.handleSocketDidReceiveMessage),(0,tt._)(this,th).addEventListener("socketDidReceiveMessage",this.handleSocketDidReceiveMessage,{signal:e})}processSocketMessage(e){let t=!1;for(let n of Array.isArray(e.arguments)?e.arguments:[]){let{lines:e,stepRecordId:s,startLine:r}=n,i=K[s];if(!i){eo[s]=(eo[s]||[]).concat(e),t=!0;continue}let o=i.state;ef(i,e,r),t=o!==i.state}t&&this.requestJobSteps()}async requestJobSteps(){if((0,tt._)(this,tc)||!this.jobStepsUrl||this.hasSteps()&&this.areStepsCompleted())return;let e=(0,tt._)(this,ta);(0,ts._)(this,tc,!0);let t=await (0,to.x)(`${this.jobStepsUrl}?change_id=${(0,tt._)(this,ta)}`);if((0,ts._)(this,tc,!1),!t){if(!await this.waitAndIncrementRetries())return;this.requestJobSteps();return}let n=!1;t.length||(n=!0);let s=new Set(...Object.keys(eo));for(let e of t){let t=K[e.id];if(t){let n=t.container.closest("check-step");this.updateStepAttributes(n,e),n.update(),await this.fetchBackscrolls(n,e)}else this.addStep(e);t?.state!==en.STREAMING||e.started_at||(n=!0),e.completed_at&&!e.completed_log_url&&(n=!0),(0,ts._)(this,ta,Math.max((0,tt._)(this,ta),e.change_id)),s.delete(e.id)}if(s.size>0||n){if((0,tt._)(this,ta)===e&&!await this.waitAndIncrementRetries())return;this.requestJobSteps()}else(0,ts._)(this,td,0)}addStep(e){let t=document.createElement("check-step");t.setAttribute("data-external-id",e.id),this.updateStepAttributes(t,e),this.appendChild(t)}updateStepAttributes(e,t){e.setAttribute("data-name",t.name),e.setAttribute("data-number",String(t.number)),e.setAttribute("data-started-at",t.started_at||""),e.setAttribute("data-completed-at",t.completed_at||""),t.conclusion?(e.setAttribute("data-conclusion",t.conclusion),e.removeAttribute("data-in-progress")):t.started_at&&e.setAttribute("data-in-progress",""),t.log_url&&e.setAttribute("data-log-url",t.log_url),this.useActionsUx&&e.setAttribute("data-use-actions-ux",""),this.loggedIn&&e.setAttribute("data-logged-in",""),this.isJobCompleted()&&e.setAttribute("data-job-completed","")}async fetchBackscrolls(e,t){if(!(0,tt._)(this,tg)&&t.started_at&&!t.conclusion)try{let r=e.getAttribute("data-job-step-backscroll-url");if(!(0,tt._)(this,tg)&&r){var n,s;let e=await (0,to.x)(r);for(let r of((n=(0,tt._)(this,tm))[s=t.id]||(n[s]=[]),e?.lines||[]))(0,tt._)(this,tp).has(r.id)||(0,tt._)(this,tm)[t.id]?.push(r)}}finally{(0,ts._)(this,tg,!0),this.renderAliveBufferAndBackscrolls(t.id,(0,tt._)(this,tm)[t.id]||[])}}renderAliveBufferAndBackscrolls(e,t){if(!t||0===t.length)return;let n=K[e];if(!n)return;let s=t.sort((e,t)=>{let n=e.id.split("-"),s=t.id.split("-"),r=parseInt(n[0]||"0"),i=parseInt(s[0]||"0");return r===i?parseInt(n[1]||"0")>parseInt(s[1]||"0")?1:-1:r>i?1:-1}),r=s[0]?.id?.split("-"),i=parseInt(r?.[1]||"0");ef(n,s.map(e=>({text:e.line,ts:(e=>{let t=parseInt(e.split("-")[0]||"");return isNaN(t)?new Date:new Date(t)})(e.id)})),i)}isJobCompleted(){return"completed"===this.jobStatus}areStepsCompleted(){return 0===[...this.querySelectorAll("check-step")].filter(e=>e.hasAttribute("data-in-progress")).length}hasSteps(){return[...this.querySelectorAll("check-step")].length>0}async waitAndIncrementRetries(){(0,ts._)(this,tc,!0);let e=this.isJobCompleted()&&this.areStepsCompleted();return 5===(0,tt._)(this,td)||e?((0,ts._)(this,td,0),(0,ts._)(this,tc,!1),!1):((0,tr._)(this,td).value++,await new Promise(e=>setTimeout(e,2e3)),(0,ts._)(this,tc,!1),!0)}constructor(...e){super(...e),(0,i._)(this,"useActionsUx",!1),(0,i._)(this,"loggedIn",!1),(0,i._)(this,"jobStepsUrl",""),(0,i._)(this,"jobStatus",""),(0,i._)(this,"streamingUrl",""),(0,i._)(this,"canStream",!1),(0,i._)(this,"stepsFromResults",!1),(0,tn._)(this,ta,{writable:!0,value:0}),(0,tn._)(this,tc,{writable:!0,value:!1}),(0,tn._)(this,td,{writable:!0,value:0}),(0,tn._)(this,tu,{writable:!0,value:new AbortController}),(0,tn._)(this,th,{writable:!0,value:ti.y.getInstance("WatchRunAsync")}),(0,tn._)(this,tp,{writable:!0,value:new Set}),(0,tn._)(this,tg,{writable:!0,value:!1}),(0,tn._)(this,tm,{writable:!0,value:{}}),(0,i._)(this,"handleStreamFailure",()=>{(0,P.i)({incrementKey:"ACTIONS_STREAMING_LOG_VIEWS_FAIL"})}),(0,i._)(this,"handleSocketDidReceiveMessage",e=>{e instanceof CustomEvent&&this.processSocketMessage(e.detail)})}};(0,i._)(tf,"observedAttributes",["data-can-stream","data-job-status"]),(0,e9.Cg)([e8.CF],tf.prototype,"useActionsUx",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"loggedIn",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"jobStepsUrl",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"jobStatus",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"streamingUrl",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"canStream",void 0),(0,e9.Cg)([e8.CF],tf.prototype,"stepsFromResults",void 0),tf=(0,e9.Cg)([e8.p_],tf)},13523:(e,t,n)=>{n.d(t,{$r:()=>o,M1:()=>l,li:()=>r,pS:()=>c,wE:()=>a});var s=n(71315);let r="X-Fetch-Nonce",i=new Set;function o(e){i.add(e)}function l(){return i.values().next().value||""}function a(e){let t={};return void 0!==e&&(t["X-Fetch-Nonce-To-Validate"]=e),void 0===e?t[r]=l():i.has(e)?t[r]=e:t[r]=Array.from(i).join(","),t}function c(){let e=s.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&o(e)}},18651:(e,t,n)=>{n.d(t,{Fr:()=>o,R0:()=>i,U0:()=>a,xl:()=>l});var s=n(71315);let r={Android:"Android",iOS:"iOS",macOS:"macOS",Windows:"Windows",Linux:"Linux",Unknown:"Unknown"};function i(){let e=r.Unknown,t=!1;if(s.cg){let n=s.cg.navigator,i="";try{i=n.userAgent}catch{}let o="";try{o=n?.userAgentData?.platform||n.platform}catch{}-1!==["Macintosh","MacIntel","MacPPC","Mac68K","macOS"].indexOf(o)?e=r.macOS:-1!==["iPhone","iPad","iPod"].indexOf(o)?e=r.iOS:-1!==["Win32","Win64","Windows","WinCE"].indexOf(o)?e=r.Windows:/Android/.test(i)?e=r.Android:/Linux/.test(o)&&(e=r.Linux),t=n?.userAgentData?.mobile??(e===r.Android||e===r.iOS)}return{os:e,isAndroid:e===r.Android,isIOS:e===r.iOS,isMacOS:e===r.macOS,isWindows:e===r.Windows,isLinux:e===r.Linux,isDesktop:e===r.macOS||e===r.Windows||e===r.Linux,isMobile:t}}function o(){return i().isMobile}function l(){return i().isDesktop}function a(){return i().isMacOS}},21067:(e,t,n)=>{let s;function r(){if(!s)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return s}function i(){return s?.locale??"en-US"}function o(){return!!r().login}function l(){return r().login}n.d(t,{JK:()=>i,M3:()=>o,_$:()=>r,cj:()=>l}),!function(){if("undefined"!=typeof document){let e=document.getElementById("client-env");if(e)try{s=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}}()},21245:(e,t,n)=>{n.d(t,{x:()=>r});var s=n(51987);async function r(e){try{let t=await fetch(e,{credentials:"same-origin",headers:{Accept:"application/json",...(0,s.kt)()}});if(t.ok)return await t.json()}catch{}return null}},34095:(e,t,n)=>{n.d(t,{G:()=>r,K:()=>i});var s=n(71315);let r=s.XC?.readyState==="interactive"||s.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{s.XC?.addEventListener("DOMContentLoaded",()=>{e()})}),i=s.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{s.cg?.addEventListener("load",e)})},44569:(e,t,n)=>{n.d(t,{$$:()=>c,GI:()=>o,fg:()=>a,zw:()=>i});var s=n(18651),r=n(87465);let i=()=>{if("undefined"==typeof document)return!1;let e=document.querySelector("meta[name=keyboard-shortcuts-preference]");return!e||"all"===e.content},o=e=>/Enter|Arrow|Escape|Meta|Control|Mod|Esc|Tab/.test(e)||!(0,s.U0)()&&e.includes("Alt")&&e.includes("Shift"),l=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function a(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),n=e.getAttribute("type")?.toLowerCase()??"text",s="true"===e.ariaReadOnly||"true"===e.getAttribute("aria-readonly")||null!==e.getAttribute("readonly");return("select"===t||"textarea"===t||"input"===t&&!l.has(n)||e.isContentEditable)&&!s}let c=e=>{let t=(0,r.Vy)(e),n=i()&&!a(e.target);return o(t)||n}},51987:(e,t,n)=>{n.d(t,{jC:()=>a,kt:()=>o,tV:()=>l});var s=n(87057),r=n(69599),i=n(13523);function o(e){let t={"X-Requested-With":"XMLHttpRequest",...(0,i.wE)(e)};return(0,r.G7)("client_version_header")&&(t={...t,[s.S]:(0,s.O)()}),t}function l(e,t){for(let[n,s]of Object.entries(o(t)))e.set(n,s)}function a(e){return{"X-GitHub-App-Type":e}}},52401:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>SignalRSocket});var s=n(81075),r=n(50467),i=n(28556),o=n(21245);let l={Invocation:1,StreamItem:2,Completion:3,StreamInvocation:4,CancelInvocation:5,Ping:6,Close:7};let SignalRSocket=class SignalRSocket extends EventTarget{static getInstance(e){return(0,s._)(SignalRSocket,SignalRSocket,a).has(e)||(0,s._)(SignalRSocket,SignalRSocket,a).set(e,new SignalRSocket(e)),(0,s._)(SignalRSocket,SignalRSocket,a).get(e)}socketDidReceiveMessage(e,t){let n=JSON.parse(t.split(SignalRSocket.RECORD_SEPARATOR)[0]);this.dispatchEvent(new CustomEvent("socketDidReceiveMessage",{detail:n})),n.type===l.Close&&e.close()}socketDidOpen(){this.handshake()}socketDidClose(){}socketDidFinish(){this.globalSocket=null,this.shouldTryAgainWithNewSocket&&(this.shouldTryAgainWithNewSocket=!1,setTimeout(()=>this.startOrContinueStreaming(this.xhrConnectionUrl,!0),Math.floor(Math.random()*SignalRSocket.JITTER_MAX_MILLISECONDS)+SignalRSocket.JITTER_MIN_MILLISECONDS))}socketShouldRetry(e,t){return t===SignalRSocket.ABNORMAL_CLOSURE?(this.shouldTryAgainWithNewSocket=!0,!1):!this.isFatalStatusCode(t)}async startOrContinueStreaming(e,t=!1){this.xhrConnectionUrl||(this.xhrConnectionUrl=e),(!this.isStreaming||t)&&(this.isStreaming=!0,await this.tryStartNewStream(this.xhrConnectionUrl))}closeExistingSocket(){this.globalSocket&&(this.globalSocket.close(),this.globalSocket=null)}onStreamFailure(){this.dispatchEvent(new CustomEvent("onStreamFailure"))}get reconnectWindow(){return Math.floor(Math.random()*SignalRSocket.JITTER_MAX_MILLISECONDS)+SignalRSocket.JITTER_MIN_MILLISECONDS}async tryStartNewStream(e){try{let t=await this.retrieveSocketURL(e);if(!t)return;this.socketUrl=t,this.globalSocket=new i.Zl(this.socketUrl,this,{timeout:4e3,attempts:10}),await this.globalSocket.open()}catch(e){throw this.onStreamFailure(),e}}handshake(){let{searchParams:e}=new URL(this.socketUrl,window.location.origin),t=e.get("tenantId"),n=e.get("runId");if(t&&n){this.sendPayload({protocol:"json",version:1});let e={arguments:[t,+n],target:this.target,type:l.Invocation};this.sendPayload(e)}}isFatalStatusCode(e){return e===SignalRSocket.POLICY_VIOLATION}sendPayload(e){this.globalSocket&&this.globalSocket.send(JSON.stringify(e)+SignalRSocket.RECORD_SEPARATOR)}constructor(e){super(),(0,r._)(this,"isStreaming",!1),(0,r._)(this,"shouldTryAgainWithNewSocket",!1),(0,r._)(this,"target",void 0),(0,r._)(this,"retrieveSocketURL",async e=>{let t=await (0,o.x)(e),n=t?.data.authenticated_url;if(!n)return null;let s=await (0,o.x)(n);return s?.logStreamWebSocketUrl??null}),this.target=e}};(0,r._)(SignalRSocket,"RECORD_SEPARATOR","\x1e"),(0,r._)(SignalRSocket,"ABNORMAL_CLOSURE",1006),(0,r._)(SignalRSocket,"POLICY_VIOLATION",1008),(0,r._)(SignalRSocket,"JITTER_MIN_MILLISECONDS",100),(0,r._)(SignalRSocket,"JITTER_MAX_MILLISECONDS",400);var a={writable:!0,value:new Map}},56038:(e,t,n)=>{n.d(t,{Kn:()=>o,XC:()=>r,cg:()=>i,fV:()=>l});let s="undefined"!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,r="undefined"==typeof document||s?void 0:document,i="undefined"==typeof window||s?void 0:window,o="undefined"==typeof history||s?void 0:history,l="undefined"==typeof location||s?{pathname:"",origin:"",search:"",hash:"",href:""}:location},58371:(e,t,n)=>{n.d(t,{Ax:()=>r.Ax,JW:()=>i,ZV:()=>r.ZV});var s=n(51987),r=n(13937);function i(e,t){(0,r.JW)(e,async(e,n,r)=>((0,s.tV)(r.headers),t(e,n,r)))}},69599:(e,t,n)=>{n.d(t,{G7:()=>a,XY:()=>c,fQ:()=>l});var s=n(5225),r=n(21067);function i(){return new Set((0,r._$)().featureFlags)}let o=n(71315).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?i:(0,s.A)(i);function l(){return Array.from(o())}function a(e){return o().has(e)}let c={isFeatureEnabled:a}},71315:(e,t,n)=>{n.d(t,{KJ:()=>s.KJ,Kn:()=>r.Kn,X3:()=>s.X3,XC:()=>r.XC,cg:()=>r.cg,fV:()=>r.fV,g5:()=>s.g5});var s=n(6923),r=n(56038)},76999:(e,t,n)=>{n.d(t,{XX:()=>s.XX,_3:()=>s._3,qy:()=>s.qy});var s=n(31143)},87057:(e,t,n)=>{n.d(t,{O:()=>o,S:()=>i});var s=n(71315);let r=s.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",i="X-GitHub-Client-Version";function o(){return r}},87465:(e,t,n)=>{n.d(t,{JC:()=>s.JC,KK:()=>s.KK,SK:()=>i,Vy:()=>s.Vy,ai:()=>s.ai,oc:()=>s.oc,rd:()=>s.rd});var s=n(50515);let r=/(?:^|,)((?:[^,]|,(?=\+| |$))*(?:,(?=,))?)/g;function i(e){return Array.from(e.matchAll(r)).map(([,e])=>e)}},96123:(e,t,n)=>{n.d(t,{Rt:()=>r,Zz:()=>i,yU:()=>Subscription});var s=n(50467);let Subscription=class Subscription{constructor(e){(0,s._)(this,"closed",void 0),(0,s._)(this,"unsubscribe",void 0),this.closed=!1,this.unsubscribe=()=>{e(),this.closed=!0}}};function r(e,t,n,s={capture:!1}){return e.addEventListener(t,n,s),new Subscription(()=>{e.removeEventListener(t,n,s)})}function i(...e){return new Subscription(()=>{for(let t of e)t.unsubscribe()})}},99223:(e,t,n)=>{n.d(t,{k:()=>o,v:()=>l});var s=n(5225),r=n(71315);let i=(0,s.A)(function(){return r.XC?.head?.querySelector('meta[name="runtime-environment"]')?.content||""}),o=(0,s.A)(function(){return"enterprise"===i()}),l="webpack"}},e=>{e.O(0,["vendors-node_modules_github_selector-observer_dist_index_esm_js","vendors-node_modules_lit-html_lit-html_js","vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-17fcc7","vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_remote-form_dist_-f973df"],()=>e(e.s=12936)),e.O()}]); //# sourceMappingURL=workflow-runs-f9e5c5dfd069.js.map